<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/29
 * Time: 23:08
 */

include_once 'redis.php';

//获取请求数据
$param = $_GET;

$url = "main.php?page={$param['page']}";//跳转url

if (empty($param['uid'])) {
    $result = $error;
} else {
    //删除数据
    $ret = $redis->del("user:{$param['uid']}");
    $retTwo = $redis->lRem('userIds', $param['uid'], 0);

    if ($ret === 1 && $retTwo === 1) {
        notice('删除成功');
    } else {
        notice('删除失败');
    }
}
?>